package com.mk.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 聊天对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Chat implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    //用户id
    private Long sendUserId;
    //聊天对象的用户id
    private String receiveUserId;
    //聊天内容
    private String content;
    //聊天图片
    private String image;
    //发出时间
    private LocalDateTime createTime;
}
